package DemoATM;

public class Account {
    private String id;
    private String name;
    private char gender;
    private String passWord;
    private double money;
    private double limit;
    public Account(){

    }
    public Account(String id,String name,char gender,String passWord,double money,double limit
    ){
        this.id=id;
        this.name=name;
        this.gender=gender;
        this.passWord=passWord;
        this.money=money;
        this.limit=limit;
    }

    public String getId() {
        return id;
    }

    public String getName() {
        return name+(gender=='男'?"先生":"女士");
    }

    public char getGender() {
        return gender;
    }

    public String getPassWord() {
        return passWord;
    }

    public double getMoney() {
        return money;
    }

    public double getLimit() {
        return limit;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setGender(char gender) {
        this.gender = gender;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public void setLimit(double limit) {
        this.limit = limit;
    }
}
